package com.example.rabbitmq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



/**
 * @author canger
 * @Deseription RabbitMQ的配置类
 * @create 2018/9/4 10:59
 **/
@Configuration
public class RabbitConfig {

    @Bean
    public Queue queue() {
        return new Queue("ding");
    }
}
